import {get,post} from '@/util/service'

export const detailApi=(data)=>{
    return get({
        url:"/restaurant/shop/detail",
        data
    })
}
export const categoryApi=(data)=>{
    return get({
        url:"/restaurant/shop/category",
        data
    })
}

export const dishesApi=(data)=>{
    return get({
        url:"/restaurant/dishes/list",
        data
    })
}

export const evalApi=(data)=>{
    return get({
        url:"/restaurant/shop/evalList",
        data
    })
}
export const collectApi=(data)=>{
    return get({
        url:"/api/collect/isCollect",
        data
    })
}
export const saveCollectApi=(data)=>{
    return post({
        url:"/api/collect/addCollect?shopId="+data.shopId
    })
}